<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>客运公司车辆加盟管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/applycargo/tApplycargo/">客运公司车辆加盟列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="TApplycargo" action="${ctx}/applycargo/tApplycargo/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li>
				<label>申请日期：</label>
				<input name="createDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${tApplycargo.createDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>联系人</th>
				<th>联系人手机</th>
				<th>联系人邮箱</th>
				<th>公司名称</th>
				<th>运营范围</th>
				<th>车辆规模</th>
				<th>申请日期</th>
				<th>状态</th>
				<shiro:hasPermission name="applycargo:tApplycargo:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tApplycargo">
			<tr>
				<td>
					<a href="${ctx}/applycargo/tApplycargo/form?acid=${tApplycargo.acid}">
						${tApplycargo.contacts}
					</a>
				</td>
				<td>
					${tApplycargo.contactstel}
				</td>
				<td>
					${tApplycargo.email}
				</td>
				<td>
					${tApplycargo.companyname}
				</td>
				<td>
					${tApplycargo.range}
				</td>
				<td>
					${tApplycargo.vehinum}
				</td>
				<td>
					<fmt:formatDate value="${tApplycargo.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${tApplycargo.auditstatus == '1'?'新提交':''}
					${tApplycargo.auditstatus == '2'?'已反馈':''}
				</td>
				<shiro:hasPermission name="applycargo:tApplycargo:edit"><td>
					<c:if test="${tApplycargo.auditstatus == '1' }">
						<a href="${ctx}/applycargo/tApplycargo/form?acid=${tApplycargo.acid}">审核</a>
					</c:if>
					<a href="${ctx}/applycargo/tApplycargo/delete?acid=${tApplycargo.acid}" onclick="return confirmx('确认要删除该客运公司车辆加盟吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>